#!/bin/bash
# postinst 脚本（Debian安装后执行）

#echo "2222222222222222"

# 确保命令失败时退出
#set -e
#
#case "$1" in
#    configure)
#        # 检查是否有缺失的依赖
#        MISSING_DEPS=$(dpkg -s libsoci-dev libmysqlclient-dev 2>&1 | grep "not installed" | awk '{print $2}' | tr '\n' ' ')
#
#        if [ -n "$MISSING_DEPS" ]; then
#            echo "以下依赖库未安装，是否自动安装？ [Y/n]" >&2
#            echo "依赖列表: $MISSING_DEPS" >&2
#            read -r USER_INPUT
#
#            if [ "$USER_INPUT" = "y" ] || [ "$USER_INPUT" = "Y" ] || [ "$USER_INPUT" = "" ]; then
#                echo "正在安装依赖库..." >&2
#                apt-get update && apt-get install -y $MISSING_DEPS
#            else
#                echo "请手动安装依赖后重新运行程序: apt install $MISSING_DEPS" >&2
#            fi
#        fi
#        ;;
#    abort-upgrade|abort-remove|abort-deconfigure)
#        ;;
#    *)
#        echo "Usage: $0 {configure}" >&2
#        exit 1
#        ;;
#esac
#
#echo "安装配置完成! "
#
#exit 0